﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace VaccineEbook.Models.DBEntity
{
    public partial class PROC_ChapterGroup_Result
    {
        internal static IEnumerable<PROC_ChapterGroup_Result> QuickSearch(string _strSeach, int _bookID, ref string _messageError)
        {
            VaccineEBookEntities context = null;
            try
            {
                context = new VaccineEBookEntities(Constant.DEFAUT_TIMEOUT_SECOND);
                var query = context.PROC_ChapterGroup(_bookID, _strSeach);
                return query.ToList();
            }
            catch (Exception ex)
            {
                _messageError = ex.Message;
                return null;
            }
        }
    }
}